package com.qianda.qdminiapp.dao.user;

import com.qianda.qdminiapp.domain.model.user.QqdUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cw
 * @since 2019-08-14
 */
public interface QqdUserDao extends BaseMapper<QqdUser> {
    int descUserMoney(Map<String,Object> param);

    int updateUserQianqianBiByOrderInfo(BigDecimal orderMoney, Long userId);

    /*
     * 余额返还
     * @Description
     * @Author cw
     * @Date 11:57 2019/8/9
     * @Param [orderMoney, userId]
     * @return int
     **/
    int setUserMoney(BigDecimal orderMoney,Long userId);

    /*
     * 千千币返还
     * @Description
     * @Author cw
     * @Date 11:58 2019/8/9
     * @Param [orderMoney, userId]
     * @return int
     **/
    int setUserQqb(BigDecimal orderMoney,Long userId);
}
